package com.zfl.service.impl;

import com.zfl.mapper.UserInfoServiceMapper;
import com.zfl.po.UserInfo;
import com.zfl.service.UserService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserInfoServiceImpl implements UserService {

    @Resource
    private UserInfoServiceMapper userInfoServiceMapper;

    @Override
    public UserInfo getUserInfoByUserId(String userId) {
        return userInfoServiceMapper.getUserInfoByUserId(userId);
    }

    @Override
    public List<UserInfo> getAllUserInfo() {
        return userInfoServiceMapper.getAllUserInfo();
    }
}
